//package com.tree.common.config.email;
//
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.mail.javamail.JavaMailSender;
//import org.springframework.mail.javamail.JavaMailSenderImpl;
//
///**
// * @ClassName com.demo.common.config
// * Description: <类功能描述>. <br>
// * <p>
// * <使用说明>
// * </p>
// * @Author tree
// * @Date 2019-05-24 23:24
// * @Version 1.0
// */
//@Configuration
//@EnableConfigurationProperties({EmailProperties.class})
//public class EmailConfig {
//
//    public @Bean JavaMailSender mailSender (EmailProperties emailProperties){
//        JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
//        mailSender.setHost(emailProperties.getMailHost());
//        mailSender.setPassword(emailProperties.getPassword());
//        mailSender.setUsername(emailProperties.getUsername());
//        return mailSender;
//    }
//}
